Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix G35 PROGMEM strings #19926

Merged
merged 4 commits into from
Oct 27, 2020

Conversation

Speaka
Copy link
Contributor

@Speaka Speaka commented Oct 27, 2020

Description

In G35 tramming_point_name[i] is stored in Progmem. SERIAL_ECHOPAIR seems to not be able to handle this on Mega2560 and 8bit in general. It points to the same address in RAM and echoes rubbish.

Based on the solution linked below i tried to apply the most appropriate Serial Macro. This seems to be the best here.

This is probably not the perfect solution as I am no pro coder but I did this in style of examples at other files.
I assumed to store constant strings intended to serial in Progmem to save ram. So SERIAL_ECHOPGM was prefered.

Benefits

Printing the tramming_point_name from PROGMEM address now how it should be.

Configurations

  • MEGA2560 or 8 bit Board
  • #define ASSISTED_TRAMMING
  • #define DEBUG_LEVELING_FEATURE

Related Issues and Sources

Based on this solution.
Bug Reports describing the same problem: #19473 #19896 propably #19555

What needs to be done

I can only test on my 8bit System.
This needs to be tested on other Systems especially other architectures. I don't know how this will work on 32bit.

@Speaka Speaka marked this pull request as ready for review October 27, 2020 21:52
@thinkyhead thinkyhead changed the title Update G35.cpp Fix G35 PROGMEM strings Oct 27, 2020
@thinkyhead thinkyhead merged commit 2cae26e into MarlinFirmware:bugfix-2.0.x Oct 27, 2020
Speaka added a commit to Speaka/Marlin that referenced this pull request Nov 2, 2020
@Speaka Speaka deleted the g35-progmem-bugfix branch November 2, 2020 17:42
@Speaka Speaka mentioned this pull request Nov 4, 2020
10 tasks
vgadreau pushed a commit to vgadreau/Marlin that referenced this pull request Dec 9, 2020
tharts pushed a commit to tharts/Marlin that referenced this pull request Jan 6, 2021
codingcatgirl pushed a commit to codingcatgirl/Marlin that referenced this pull request Jan 28, 2021
kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
thinkyhead pushed a commit to thinkyhead/Marlin that referenced this pull request Apr 28, 2021
thinkyhead pushed a commit to thinkyhead/Marlin that referenced this pull request Apr 29, 2021
thinkyhead pushed a commit that referenced this pull request Apr 30, 2021
codingcatgirl pushed a commit to codingcatgirl/Marlin that referenced this pull request May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants